<?php
session_start();

function __autoload($class) {
    include("models/".strtolower($class).".class.php");
}

$host = "";
$username = "";
$password = "";
$db = "";

$qm = new Query($host, $db, $username, $password);

//url ophalen en manipuleren
$url = rtrim($_GET['p'],'/');
$menu = explode("/",$url);
$menuCount = count($menu);
$category = $menu[0];

if($category == "logout"){
    session_destroy();
}

?>
